com.supermap.plot

Class AnimationManager

    • Constructor Detail

      • AnimationManager

        public AnimationManager()
    • Method Detail

      • getInstance

        public static AnimationManager getInstance()
        Gets the instance of the class
        Returns:
        the instance of the class
      • play

        public void play()
        Plays
      • stop

        public void stop()
        Stops
      • pause

        public void pause()
        Pauses
      • reset

        public void reset()
        Reset
      • excute

        public void excute()
        Initializes
      • addAnimationGroup

        public AnimationGroup addAnimationGroup(java.lang.String strgroupname)
        Adds an animation group
        Parameters:
        strgroupname - the name of the animation group
        Returns:
        the animation groups
      • getGroupByName

        public AnimationGroup getGroupByName(java.lang.String groupName)
        Gets animation groups according to their names
        Parameters:
        groupName - Name
        Returns:
        the animation groups
      • getGroupByIndex

        public AnimationGroup getGroupByIndex(int ipos)
        Gets animation groups according to sequence
        Parameters:
        ipos - sequence
        Returns:
        the animation groups
      • getGroupCount

        public int getGroupCount()
        Gets the number of the animation groups
        Returns:
        Number
      • deleteGroupByName

        public boolean deleteGroupByName(java.lang.String groupName)
        Deletes animation groups according to their name
        Parameters:
        groupName - Name
        Returns:
        removal was successful.
      • deleteAll

        public void deleteAll()
        Deletes all objects
      • merge

        public boolean merge(java.lang.String groupName1,
                             java.lang.String groupName2)
        Merges two animation groups
        Parameters:
        groupName1 - Name
        groupName2 - Name
        Returns:
        whether the merging is successful.
      • split

        public boolean split(java.lang.String oldGroupName,
                             int index,
                             java.lang.String newGroupName)
        Splits the animation group
        Parameters:
        oldGroupName - the name of the old animation group
        index - The splitting position
        newGroupName - the name of new animation
        Returns:
        whether the dividing is successful.
      • movePrev

        public boolean movePrev(int iGroupIndex)
        Moves the animation to the top
        Parameters:
        iGroupIndex - Animation sequence
        Returns:
        whether succeed
      • moveNext

        public boolean moveNext(int iGroupIndex)
        Moves the animation to the last
        Parameters:
        iGroupIndex - Animation sequence
        Returns:
        whether succeed
      • getAnimationFromXML

        public boolean getAnimationFromXML(java.lang.String filePath)
        Gets an animation from a specified xml
        Parameters:
        filePath - xml address
        Returns:
        whether succeed
      • saveAnimationToXML

        public boolean saveAnimationToXML(java.lang.String filePath)
        Converts an animation to a xml
        Parameters:
        filePath - xml address
        Returns:
        whether succeed
      • getDeletedGeoAnimations

        public java.lang.String[] getDeletedGeoAnimations()
        Gets the name of animation to be removed
        Returns:
        An array of names.
      • addAnimationPlayBeginListener

        public void addAnimationPlayBeginListener(AnimationPlayBeginListener listener)
        Adds the listener of playing an animation
        Parameters:
        listener - the listener of playing an animation
      • removeAnimationPlayBeginListener

        public void removeAnimationPlayBeginListener(AnimationPlayBeginListener listener)
        Removes the listener of playing an animation
        Parameters:
        listener - the listener of playing an animation
      • addAnimationPlayFinishListener

        public void addAnimationPlayFinishListener(AnimationPlayFinishListener listener)
        Adds the listener of ending an animation
        Parameters:
        listener - the listener of ending an animation
      • removeAnimationPlayFinishListener

        public void removeAnimationPlayFinishListener(AnimationPlayFinishListener listener)
        Removes the listener of ending an animation
        Parameters:
        listener - the listener of ending an animation
      • deleteAnimationManager

        public void deleteAnimationManager()
        Deletes the animation manage object
      • dispose

        public void dispose()
        Release